package com.service.impl;

import com.dao.BlogDao;
import com.domain.Blog;
import com.service.Service1;
import org.omg.CORBA.StringHolder;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ServiceImpl implements Service1 {
    private BlogDao blogDao;

    public void setBlogDao(BlogDao blogDao) {
        this.blogDao = blogDao;
    }

    public void add(Blog blog) {
             blogDao.add(blog);
    }

    public void del(String id) {
            blogDao.del(id);
    }

    public void upd(Blog blog) {
     blogDao.upd(blog);
    }

    public Blog findById(String  blogId) {
        return blogDao.findById(blogId);
    }

    public List<Blog> fingAll() {
        return blogDao.fingAll();
    }
}
